using System;
using System.ComponentModel;
using System.Runtime.Serialization;
namespace Net35.Xrm.Sdk.Query
{
	[DataContract(Name = "OrderExpression", Namespace = "http://schemas.microsoft.com/xrm/2011/Contracts")]
	public sealed class OrderExpression : IExtensibleDataObject
	{
		private string _attributeName;
		private OrderType _orderType;
		private ExtensionDataObject _extensionDataObject;
		[DataMember]
		public string AttributeName
		{
			get
			{
				return this._attributeName;
			}
			set
			{
				this._attributeName = value;
			}
		}
		[DataMember]
		public OrderType OrderType
		{
			get
			{
				return this._orderType;
			}
			set
			{
				this._orderType = value;
			}
		}
		public ExtensionDataObject ExtensionData
		{
			get
			{
				return this._extensionDataObject;
			}
			set
			{
				this._extensionDataObject = value;
			}
		}
		public OrderExpression()
		{
		}
		public OrderExpression(string attributeName, OrderType orderType)
		{
			this._attributeName = attributeName;
			this._orderType = orderType;
		}
		[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
		internal void Accept(IQueryVisitor visitor)
		{
			visitor.Visit(this);
		}
	}
}
